package org.ala.tiktools.rpc.msg.push;

import java.io.Serializable;
import java.util.Map;

/**
 * @author ala
 * @date 2025-04-04 17:45
 */
public class RpcPushBody implements Serializable {
    public final static long serialVersionUID = 1;


    /**
     *  请求的url
     */
    protected String url;
    /**
     *  请求的参数
     */
    protected Object[] args;
    /**
     * 	元数据
     * 	<p>	充当http-header来用
     */
    protected Map<String, Object> metadata;


    public static RpcPushBody build() {return new RpcPushBody();}


    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public RpcPushBody url(String url) {
        setUrl(url);
        return this;
    }

    public Object[] getArgs() {
        return args;
    }

    public void setArgs(Object[] args) {
        this.args = args;
    }

    public RpcPushBody args(Object[] args) {
        setArgs(args);
        return this;
    }

	public Map<String, Object> getMetadata() {
		return metadata;
	}

	public void setMetadata(Map<String, Object> metadata) {
		this.metadata = metadata;
	}
	
	public RpcPushBody metadata(Map<String, Object> metadata) {
		setMetadata(metadata);
		return this;
	}
}
